<div style='max-height:500px;overflow:auto;min-width:850px;'>
<table class="table table-hover" style="min-width:850px;">
    <tbody>   
        {foreach $ds as $key => $row}
        <tr>
            <td>
                {$row['rolename']}
            </td>
            <td style="width:80px;"><a href="javascript:;" onclick='select_role({:json_encode($row)})'>选择</a></td>
        </tr>
        {/foreach}
        {if count($ds)<=0}
        <tr> 
            <td colspan='4' align='center'>未找到数据</td>
        </tr>
        {/if}
    </tbody>
</table>
    </div>